package com.mike.action;

import java.util.List;
import java.util.Map;

import org.apache.struts2.interceptor.RequestAware;

import com.mike.common.Const;
import com.mike.dao.impl.introPeopleDaoImpl;
import com.mike.pojo.PeopleIntro;
import com.opensymphony.xwork2.ActionSupport;

public class introPeopleAction extends ActionSupport implements RequestAware{

	
	Map<String, Object> requestMap = null;
	@Override
	public void setRequest(Map<String, Object> requestMap) {

		this.requestMap = requestMap;
	}

	public String  queryEP(){
		
		introPeopleDaoImpl a = new introPeopleDaoImpl();
		List<PeopleIntro> list = a.query();
		requestMap.put("list", list);
		System.out.println(list);
		
		
		return Const.SUCCESS;
	}
}
